<template>
  <div class="add_dialog text-center">
    <el-link class="flex-1" type="primary" :underline="false" @click="dialogFormVisible = true"
      >指派</el-link
    >
    <el-dialog
      v-model="dialogFormVisible"
      width="420px"
      append-to-body
      :close-delay="10"
      :lock-scroll="false"
      destroy-on-close
      title="指派"
    >
      <el-form :model="form">
        <el-form-item label="发送" prop="send">
          <el-mention v-model="form.send" whole :options="sendList" placeholder="输入@选择发送人" />
        </el-form-item>
        <el-form-item label="是否加急" prop="content">
          <el-switch v-model="form.content" />
        </el-form-item>
      </el-form>
      <template #footer>
        <el-button type="primary" @click="dialogFormVisible = false">发送</el-button>
        <el-button @click="dialogFormVisible = false"> 关闭 </el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script setup lang="ts">
const dialogFormVisible = ref(false)
const form = reactive({
  send: '',
  reply: '',
  content: '',
  type: 'reply'
})
const sendList = ref(['Fuphoenixes', 'kooriookami', 'Jeremy', 'btea'].map((value) => ({ value })))
const useList = [
  {
    label: '常用回复常用回复常用回复'
  },
  {
    label: '常用回复常用回复常用回复'
  },
  {
    label: '常用回复常用回复常用回复'
  },
  {
    label: '常用回复常用回复常用回复'
  },
  {
    label: '常用回复常用回复常用回复'
  }
]
</script>
<style lang="scss" scoped>
.changyong {
  font-size: 14px;
  color: #212429;
  text-align: left;
}
.use-box {
  padding: 3px 0;
  border-bottom: 1px solid #eaeef5;
  .name {
    font-size: 13px;
    color: #565b66;
  }
  .hand {
    font-size: 13px;
    color: #1763ff;
    cursor: pointer;
  }
}
</style>
